h1>Listing tpls</h1>

<table>
  <tr>
    <th>Config conteudo</th>
    <th>Nome</th>
  </tr>

<% for tpl in @tpls %>
  <tr>
    <td><%= icone_config_conteudo(tpl.config_conteudo) %></td>
    <td><%=h tpl.nome %></td>
    <td><%= link_to 'Show', tpl %></td>
    <td><%= link_to 'Edit', edit_tpl_path(tpl) %></td>
    <td><%= link_to 'Destroy', tpl, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New tpl', new_tpl_path %>
